package com.home.school.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.Data;
import org.omg.PortableInterceptor.INACTIVE;

@Data
@TableName(value = "t_order")
public class TOrder {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学生id
     */
    @TableField(value = "stu_id")
    private String stuId;

    /**
     * 上课时间
     */
    @TableField(value = "time")
    private Date time;

    /**
     * 老师id
     */
    @TableField(value = "tea_id")
    private String teaId;

    /**
     * 上课地点
     */
    @TableField(value = "address")
    private String address;

    /**
     * 拒绝
     */
    @TableField(value = "reject_msg")
    private String rejectMsg;
    /**
     * 科目id
     */
    @TableField(value = "subject_id")
    private Integer subjectId;

    /**
     * 订单状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String subjectTitle;
    @TableField(exist = false)
    private Integer subjectType;




    public static final String COL_ID = "id";

    public static final String COL_STU_ID = "stu_id";

    public static final String COL_TIME = "time";

    public static final String COL_TEA_ID = "tea_id";

    public static final String COL_ADDRESS = "address";

    public static final String COL_SUBJECT_ID = "subject_id";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}